package com.dx.mes.web;

import com.dx.mes.service.spc.service.IFqprepdataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by xxd on 2017/9/24.
 */
@Controller
public class ReportToolMController {

    @Autowired
    private IFqprepdataService fqpedcdataService;

    @RequestMapping(value = "/reportTool.do")
    @ResponseBody
    public String reportMessage(String evt_no,@RequestParam("strInMsg")String strInMsg,
                                HttpServletRequest request ,HttpServletResponse response){
        String message = fqpedcdataService.subMainProc("",strInMsg);
        return message;
    }

}
